<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="https://cdn.staticfile.org/font-awesome/4.4.0/css/font-awesome.css?v=4.4.0" rel="stylesheet">

    <link rel="stylesheet" href="../static/css/base.css">
    <link rel="stylesheet" href="../static/css/widget.css">
    <link rel="stylesheet" href="../static/css/innerPage.css">

    <style>
        .container {
            width: 600px;
        }
    </style>
</head>

<body class="bg_f3">

    <div class="sc-container">

        <div class="widget mt_40">
            <div class="widget-header">
                <i class="fa fa-check widget-icon "></i>
                <span class="widget-caption">Default Widget</span>
                <div class="widget-buttons">

                    <a href="#" data-toggle="collapse">
                        <i class="fa fa-angle-double-up">&nbsp;</i>
                        <span class="up_text">收起</span>
                        <span class="down_text">展开</span>
                    </a>
                </div>
            </div>
            <div class="widget-body">
                <p>轻轻地我走了,正如我轻轻地来</p>
                <p>轻轻地我走了,正如我轻轻地来</p>
                <p>轻轻地我走了,正如我轻轻地来</p>
                <p>轻轻地我走了,正如我轻轻地来</p>
            </div>
        </div>

        <div class="widget mt_40">
            <div class="widget-header">
                <i class="fa fa-check widget-icon "></i>
                <span class="widget-caption">Default Widget</span>
                <div class="widget-buttons">

                    <a href="#" data-toggle="collapse">
                        <i class="fa fa-angle-double-up">&nbsp;</i>
                        <span class="up_text">收起</span>
                        <span class="down_text">展开</span>
                    </a>
                </div>
            </div>
            <div class="widget-body   ">
                <p>Modal Body</p>
            </div>
        </div>


    </div>


    <script src="../static/js/jquery.js"></script>
    <script src="../static/js/suit.js"></script>

    <script>
        //监听窗口事件 开始
        var reSize = function() {

            var outerWidth = $(window).width();
            var outerHeight = $(window).height();

            var myHeight = $('.container').height();

            $(".container").css({
                'margin-top': (outerHeight / 2) - (myHeight * 0.67) + 'px'
            });


        };
        $(window).bind("load resize", reSize);
        setTimeout(reSize, 0);
        //监听窗口事件 结束
    </script>

</body>

</html>